﻿using UnityEngine;

namespace Core.Setting
{
    /// <summary>
    /// 帧率
    /// 
    /// Application.targetFrameRate = 60;
    /// </summary>
    public class FrameRateSetting : AbstractSettingItem
    {
        //public int Value { get; private set; }


        //public void Set(int frame_rate)
        //{
        //    Value = frame_rate;
        //    SetValue(frame_rate);
        //}

        public override void Awake()
        {
            MaxValue = 60;
        }

        public override void Refresh()
        {
            Application.targetFrameRate = Value;
        }
    }
}
